import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

/*引入具体的模块*/
import index from './map/index'
import ranking from './map/ranking'
import bonus from './map/bonus'
import record from './map/record'
import teacher from './map/teacher'
import read from './map/read'
import share from './map/share'
//定义路由路径
let routes = []
routes=routes.concat(index,bonus,record,teacher,read,ranking,share);
const router = new VueRouter({
    mode: 'history',
    base: __dirname,
    linkActiveClass: 'active',
    routes,
    scrollBehavior(to, from, savedPosition) {
        return { x: 0, y: 0 }
    }
})

export default router